<!--  -->
<template>
  <div class='outArea-page'>
    <div class="outArea-info flex-a-c">
      <van-image
        round
        width="3.4375rem"
        height="3.4375rem"
        :src="userInfo.avatar"
      />
      <h3>{{userInfo.nickname}}</h3>
    </div>
    <div class="account-board">
      <div class="account flex-a-c">
        <p>累计分红总额：<span>￥{{userInfo.all_amount}}</span></p>
      </div>
      <div class="account-content">
        <van-tabs v-model="status" title-active-color="#F15353" title-inactive-color="#454545"  @click="ontabClick">
          <block v-for="(item,index) in tabList" :key="index" >
            <van-tab :title="item.name" :name="item.status"></van-tab>
          </block>
        </van-tabs>
        <div class="account-list" v-if="shareList.length > 0 ">
          <block v-for="(item,index) in shareList" :key="index">
            <div class="account-box">
            <div class="account-order flex-a-c flex-j-sb">
                <h3>分红ID：{{item.id}}</h3>
                <p>￥{{item.amounts}}</p>
              </div>
              <div class="account-time">{{item.created_at}}</div>
            </div>
          </block>
        </div>
        <van-empty description="暂无数据" v-else />
      </div>
      <div class="mh-50"></div>
    </div>
  </div>
</template>

<script>
import shareBonus_controller from './shareBonus_controller';
export default shareBonus_controller;
</script>
<style lang="scss" scoped>
/* @import url(); 引入公共css类 */
  .mh-50 {
    height: 3.125rem;
    clear: both;
  }
  .outArea-page {
    height: auto;
    min-height: 100vh;
    background-image: linear-gradient(#FF8924 0%,#FF8924 7.5rem,#F7F8FB 7.5rem ,#F7F8FB 100%);
    .outArea-info {
      padding:1.3125rem 0.75rem 1.5rem 0.75rem;
      h3 {
        font-size: 1rem;
        font-weight: bold;
        color: #FFFFFF;
        padding:0 0 0 0.8125rem;
      }
    }
    .account-board {
      margin: 0 0.75rem;
      .account {
        background-color: #fff;
        border-radius: 0.3125rem;
        padding:1.125rem 0 1rem 0;
        p {
          font-size: 0.8125rem;
          color: #282828;
          padding:0 0 0 0.75rem;
          span {
            color:#F14E4E;
          }
        }
      }
      .account-content {
        margin:0.625rem 0 0 0;
        border-radius: 0.3125rem;
        background-color: #fff;
        padding: 0 0.75rem;
        .account-list {
          margin:0.4375rem 0 0 0;
          .account-box {
            padding:0.75rem 0;
            border-top: 0.0625rem solid #F2F2F2;
            .account-order {
              color: #333333;
              font-size: 0.8125rem;
              padding:0 0 0.5rem 0;
              h3 {
                font-weight: 400;
              }
              p {
                font-size: 0.8125rem;
                color: #F15353;
              }
            }
            .account-info {

              h3 {
                font-size: 0.75rem;
                color: #3B3B4A;
                padding:0 0 0 0.25rem;
              }

            }
            .account-status {
                font-size: 0.75rem;
                color: #838383;
            }
            .red {
              color:#FB6B68;
            }
            .account-time {
              text-align: left;
              font-size: 0.6875rem;
              color: #999999;
            }
          }
        }
      }
    }
  }
</style>